/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package treenode.visitor;

/**
 *
 * @author Bartek
 */
public class PostFixPrintVisitor extends Visitor {

    @Override
    public void visitNumericNode(NumericNode numericNode) {
        System.out.print(numericNode.getLabel());
    }

    @Override
    public void visitBinaryOperatorNode(BinaryOperatorNode binaryOperatorNode) {
        binaryOperatorNode.getLeft().accept(this);
        binaryOperatorNode.getRight().accept(this);
        System.out.print(binaryOperatorNode.getLabel());
    }
    
}
